evaluation of tree function

[计] 树函数计算